package com.demo.starter.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

@Controller
public class IndexController {
	
	private final static Logger LOGGER = LoggerFactory.getLogger(IndexController.class);
	
	@RequestMapping("/")
	public ModelAndView index(ModelMap model, HttpServletRequest request) {
		LOGGER.debug("debug log...");
		LOGGER.info("info log...");
		LOGGER.warn("warn log...");
		LOGGER.error("error log...");
		
        return new ModelAndView("/index");
    }

}
